<?php
namespace app\index\controller;

use think\Db;

class Test {

    public function test() {
        $url = 'http://192.168.1.17:8080/encrypt';
        $cinfo = [
            'userId' => '12345',
            'extInfo' => [
                'uid' => genUUID(),
                'customerInfo' => 'this is a test'
            ],
            'timestamp' => time(),
            'uname' => 'lei'
        ];
        $cinfo = json_encode($cinfo);
        $res = http_post($url, $cinfo);
        p($res);
    }

}